package com.jrx.anytxn.reporting.job.reportingFile.step;

import com.jrx.anytxn.common.exception.TxnException;
import com.jrx.anytxn.customer.entity.CmLimitAdjustLog;
import com.jrx.anytxn.reporting.service.IReportingFileService;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CustLimitFileProcessor implements ItemProcessor<CmLimitAdjustLog, String> {

    @Autowired
    private IReportingFileService reportingFileService;

    @Override
    public String process(CmLimitAdjustLog item) throws TxnException {

        return reportingFileService.createLimitFileMessage(item);

    }
}
